home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
applytexture.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
931b
|
42 lines
/*
* ApplyTexture.ifx.pre
* Written by Thomas Krehbiel
*
* Apply Texture effect.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_ApplyTex_'
tpath = GETCLIP(base||'Path')
tfile = GETCLIP(base||'File')
tname = GETCLIP(base||'Texture')
tdep = GETCLIP(base||'Depth')
IF tpath = "" THEN tpath = "Textures"
IF tdep = "" THEN tdep = 140
Gadget.1 = 'STRING 150 5 150 14 "Texture:"' tname
Gadget.2 = 'FILEREQ 302 5 22 14 "Select Texture:"' tpath '#?' tname 'AT=1'
Gadget.3 = 'INTEGER 150 20 50 14 "Depth:"' tdep
Gadget.4 = 'END'
NewComplexRequest '"Apply Texture"' Gadget 340 40
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'Texture', result.1)
CALL SETCLIP(base||'Path', result.2.path)
CALL SETCLIP(base||'File', result.2.file)
CALL SETCLIP(base||'Depth', result.3)
EXIT